home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
BBS-Archive
/
Comm
/
AmiTCP30b2.lha
/
src
/
rpclib
/
Smakefile
< prev
next >
Wrap
Makefile
|
1994-03-09
|
10KB
|
319 lines
# $Id: Smakefile,v 1.2 1994/03/09 01:42:37 jraja Exp $
#
# Smakefile for AmiTCP/IP SUN RPC library
#
# Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
# Helsinki University of Technology, Finland.
# All rights reserved.
#
# How to select an RPC library? Use following table:
#
# | PAREMETERS | DATA MODE | DEBUGGING | Library name
# | STACK | REG | NEAR | FAR | YES | NO |
# +-------+-----+------+-----+-----+-----+-------------
# | x | | x | | | x | rpc.lib
# | | x | x | | | x | rpcr.lib
# | x | | | x | | x | rpcnb.lib
# | | x | | x | | x | rpcnbr.lib
# | x | | x | | x | | grpc.lib
# | | x | x | | x | | grpcr.lib
# | x | | | x | x | | grpcnb.lib
# | | x | | x | x | | grpcnbr.lib
#
# $Log: Smakefile,v $
# Revision 1.2 1994/03/09 01:42:37 jraja
# Completely new version.
#
#
DEST = AmiTCP:
MAKE = smake
RM= delete
RM_RECURSIVE= delete all
MKDIR= makedir
MV= rename
CP= copy dates
CC= sc
LD= slink
OFLAGS= Optimize NoDebug
GFLAGS= NoOptimize Debug=fullflush
CFLAGS= DATA=NEAR
CFLAGS_NB= DATA=FAR
PARREG= PARAMETERS=REGISTERS
PARSTK= PARAMETERS=STACK
DEFS= "DEF=RCS_ID_C=//" DEF=AMITCP=1 DEF=AMIGA=1
IDIRS= IDIR=netinclude:
SCOPTIONS= NOSTACKCHECK STRINGMERGE \
NOVERSION NOICONS NOERRORHIGHLIGHT \
NOGENPROTOEXTERNS GENPROTOSTATICS NOGENPROTODATAITEMS \
OPTIMIZERINLINELOCAL OPTIMIZERSCHEDULER OPTIMIZERTIME \
OPTIMIZERCOMPLEXITY=5 OPTIMIZERDEPTH=5 OPTIMIZERRECURDEPTH=5 \
MAP MAPHUNK MAPSYMBOLS MAPLIB MAPXREFERENCE \
SMALLCODE SMALLDATA LINKEROPTIONS=plain \
$(DEFS) $(IDIRS)
RPCSRC= auth_none.c auth_unix.c authunix_prot.c bindresvport.c \
clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \
clnt_tcp.c clnt_udp.c rpc_dtablesize.c get_myaddress.c \
getrpcent.c getrpcport.c pmap_clnt.c pmap_getmaps.c \
pmap_getport.c pmap_prot.c pmap_prot2.c pmap_rmt.c \
rpc_prot.c rpc_commondata.c rpc_callmsg.c svc.c \
svc_auth.c svc_auth_unix.c svc_raw.c svc_run.c \
svc_simple.c svc_tcp.c svc_udp.c xdr.c xdr_array.c \
xdr_mem.c xdr_rec.c xdr_reference.c xdr_stdio.c \
xdr_float.c
EXTSRC= chkabort.c
RPCHDR= netinclude:rpc/auth.h netinclude:rpc/auth_unix.h \
netinclude:rpc/clnt.h netinclude:rpc/pmap_clnt.h \
netinclude:rpc/pmap_prot.h netinclude:rpc/pmap_rmt.h \
netinclude:rpc/rpc.h netinclude:rpc/rpc_msg.h \
netinclude:rpc/svc.h netinclude:rpc/svc_auth.h \
netinclude:rpc/types.h netinclude:rpc/xdr.h
LIBS= rpc.lib rpcr.lib rpcnb.lib rpcnbr.lib
DEBUGLIBS= grpc.lib grpcr.lib grpcnb.lib grpcnbr.lib
DEFAULTLIBS = rpcr.lib # these are done and installed by default
RPCOBJ= auth_none.o auth_unix.o authunix_prot.o bindresvport.o \
clnt_generic.o clnt_perror.o clnt_raw.o clnt_simple.o \
clnt_tcp.o clnt_udp.o rpc_dtablesize.o get_myaddress.o \
getrpcent.o getrpcport.o pmap_clnt.o pmap_getmaps.o \
pmap_getport.o pmap_prot.o pmap_prot2.o pmap_rmt.o \
rpc_prot.o rpc_commondata.o rpc_callmsg.o svc.o \
svc_auth.o svc_auth_unix.o svc_raw.o svc_run.o \
svc_simple.o svc_tcp.o svc_udp.o xdr.o xdr_array.o \
xdr_mem.o xdr_rec.o xdr_reference.o xdr_stdio.o \
xdr_float.o chkabort.o
RPCROBJ=\
auth_none.ro auth_unix.ro authunix_prot.ro bindresvport.ro \
clnt_generic.ro clnt_perror.ro clnt_raw.ro clnt_simple.ro \
clnt_tcp.ro clnt_udp.ro rpc_dtablesize.ro get_myaddress.ro \
getrpcent.ro getrpcport.ro pmap_clnt.ro pmap_getmaps.ro \
pmap_getport.ro pmap_prot.ro pmap_prot2.ro pmap_rmt.ro \
rpc_prot.ro rpc_commondata.ro rpc_callmsg.ro svc.ro \
svc_auth.ro svc_auth_unix.ro svc_raw.ro svc_run.ro \
svc_simple.ro svc_tcp.ro svc_udp.ro xdr.ro xdr_array.ro \
xdr_mem.ro xdr_rec.ro xdr_reference.ro xdr_stdio.ro \
xdr_float.ro chkabort.ro
RPCNBOBJ= auth_none.nbo auth_unix.nbo authunix_prot.nbo bindresvport.nbo \
clnt_generic.nbo clnt_perror.nbo clnt_raw.nbo clnt_simple.nbo \
clnt_tcp.nbo clnt_udp.nbo rpc_dtablesize.nbo get_myaddress.nbo \
getrpcent.nbo getrpcport.nbo pmap_clnt.nbo pmap_getmaps.nbo \
pmap_getport.nbo pmap_prot.nbo pmap_prot2.nbo pmap_rmt.nbo \
rpc_prot.nbo rpc_commondata.nbo rpc_callmsg.nbo svc.nbo \
svc_auth.nbo svc_auth_unix.nbo svc_raw.nbo svc_run.nbo \
svc_simple.nbo svc_tcp.nbo svc_udp.nbo xdr.nbo xdr_array.nbo \
xdr_mem.nbo xdr_rec.nbo xdr_reference.nbo xdr_stdio.nbo \
xdr_float.nbo chkabort.nbo
RPCNBROBJ=\
auth_none.nbro auth_unix.nbro authunix_prot.nbro bindresvport.nbro \
clnt_generic.nbro clnt_perror.nbro clnt_raw.nbro clnt_simple.nbro \
clnt_tcp.nbro clnt_udp.nbro rpc_dtablesize.nbro get_myaddress.nbro \
getrpcent.nbro getrpcport.nbro pmap_clnt.nbro pmap_getmaps.nbro \
pmap_getport.nbro pmap_prot.nbro pmap_prot2.nbro pmap_rmt.nbro \
rpc_prot.nbro rpc_commondata.nbro rpc_callmsg.nbro svc.nbro \
svc_auth.nbro svc_auth_unix.nbro svc_raw.nbro svc_run.nbro \
svc_simple.nbro svc_tcp.nbro svc_udp.nbro xdr.nbro xdr_array.nbro \
xdr_mem.nbro xdr_rec.nbro xdr_reference.nbro xdr_stdio.nbro \
xdr_float.nbro chkabort.nbro
GRPCOBJ= auth_none.go auth_unix.go authunix_prot.go bindresvport.go \
clnt_generic.go clnt_perror.go clnt_raw.go clnt_simple.go \
clnt_tcp.go clnt_udp.go rpc_dtablesize.go get_myaddress.go \
getrpcent.go getrpcport.go pmap_clnt.go pmap_getmaps.go \
pmap_getport.go pmap_prot.go pmap_prot2.go pmap_rmt.go \
rpc_prot.go rpc_commondata.go rpc_callmsg.go svc.go \
svc_auth.go svc_auth_unix.go svc_raw.go svc_run.go \
svc_simple.go svc_tcp.go svc_udp.go xdr.go xdr_array.go \
xdr_mem.go xdr_rec.go xdr_reference.go xdr_stdio.go \
xdr_float.go chkabort.go
GRPCROBJ=\
auth_none.gro auth_unix.gro authunix_prot.gro bindresvport.gro \
clnt_generic.gro clnt_perror.gro clnt_raw.gro clnt_simple.gro \
clnt_tcp.gro clnt_udp.gro rpc_dtablesize.gro get_myaddress.gro \
getrpcent.gro getrpcport.gro pmap_clnt.gro pmap_getmaps.gro \
pmap_getport.gro pmap_prot.gro pmap_prot2.gro pmap_rmt.gro \
rpc_prot.gro rpc_commondata.gro rpc_callmsg.gro svc.gro \
svc_auth.gro svc_auth_unix.gro svc_raw.gro svc_run.gro \
svc_simple.gro svc_tcp.gro svc_udp.gro xdr.gro xdr_array.gro \
xdr_mem.gro xdr_rec.gro xdr_reference.gro xdr_stdio.gro \
xdr_float.gro chkabort.gro
GRPCNBOBJ=\
auth_none.gnbo auth_unix.gnbo authunix_prot.gnbo bindresvport.gnbo \
clnt_generic.gnbo clnt_perror.gnbo clnt_raw.gnbo clnt_simple.gnbo \
clnt_tcp.gnbo clnt_udp.gnbo rpc_dtablesize.gnbo get_myaddress.gnbo \
getrpcent.gnbo getrpcport.gnbo pmap_clnt.gnbo pmap_getmaps.gnbo \
pmap_getport.gnbo pmap_prot.gnbo pmap_prot2.gnbo pmap_rmt.gnbo \
rpc_prot.gnbo rpc_commondata.gnbo rpc_callmsg.gnbo svc.gnbo \
svc_auth.gnbo svc_auth_unix.gnbo svc_raw.gnbo svc_run.gnbo \
svc_simple.gnbo svc_tcp.gnbo svc_udp.gnbo xdr.gnbo xdr_array.gnbo \
xdr_mem.gnbo xdr_rec.gnbo xdr_reference.gnbo xdr_stdio.gnbo \
xdr_float.gnbo chkabort.gnbo
GRPCNBROBJ=\
auth_none.gnbro auth_unix.gnbro authunix_prot.gnbro bindresvport.gnbro \
clnt_generic.gnbro clnt_perror.gnbro clnt_raw.gnbro clnt_simple.gnbro \
clnt_tcp.gnbro clnt_udp.gnbro rpc_dtablesize.gnbro get_myaddress.gnbro \
getrpcent.gnbro getrpcport.gnbro pmap_clnt.gnbro pmap_getmaps.gnbro \
pmap_getport.gnbro pmap_prot.gnbro pmap_prot2.gnbro pmap_rmt.gnbro \
rpc_prot.gnbro rpc_commondata.gnbro rpc_callmsg.gnbro svc.gnbro \
svc_auth.gnbro svc_auth_unix.gnbro svc_raw.gnbro svc_run.gnbro \
svc_simple.gnbro svc_tcp.gnbro svc_udp.gnbro xdr.gnbro xdr_array.gnbro \
xdr_mem.gnbro xdr_rec.gnbro xdr_reference.gnbro xdr_stdio.gnbro \
xdr_float.gnbro chkabort.gnbro
.SUFFIXES: .c .o .ro .go .gro .nbo .nbro .gnbo .gnbro
#
# Generic rules
#
.c.o:
$(CC) $(PARSTK) $(CFLAGS) $(OFLAGS) GST=rpc.gst $*.c
.c.ro:
$(CC) $(PARREG) $(CFLAGS) $(OFLAGS) GST=rpcr.gst $*.c OBJNAME=$*.ro
.c.nbo:
$(CC) $(PARSTK) $(CFLAGS_NB) $(OFLAGS) GST=rpcnb.gst $*.c OBJNAME=$*.nbo
.c.nbro:
$(CC) $(PARREG) $(CFLAGS_NB) $(OFLAGS) GST=rpcnbr.gst $*.c OBJNAME=$*.nbro
.c.go:
$(CC) $(PARSTK) $(CFLAGS) $(GFLAGS) GST=grpc.gst $*.c OBJNAME=$*.go
.c.gro:
$(CC) $(PARREG) $(CFLAGS) $(GFLAGS) GST=grpcr.gst $*.c OBJNAME=$*.gro
.c.gnbo:
$(CC) $(PARSTK) $(CFLAGS_NB) $(GFLAGS) GST=grpcnb.gst $*.c OBJNAME=$*.gnbo
.c.gnbro:
$(CC) $(PARREG) $(CFLAGS_NB) $(GFLAGS) GST=grpcnbr.gst $*.c OBJNAME=$*.gnbro
default: $(DEFAULTLIBS)
all: $(LIBS) $(DEBUGLIBS)
debug: $(DEBUGLIBS)
install: default $(DEST)netlib
$(CP) $(DEFAULTLIBS) $(DEST)netlib
$(DEST)netlib:
-$(MKDIR) $@
SCOPTIONS: Smakefile # this file
copy to $@ <from <
$(SCOPTIONS)
<
#
# Rules for the RPC libraries
#
rpc.lib: rpc.gst $(RPCOBJ)
-$(RM) $@
oml $@ r <@<
$(RPCOBJ)
<
rpcr.lib: rpcr.gst $(RPCROBJ)
-$(RM) $@
oml $@ r <@<
$(RPCROBJ)
<
rpcnb.lib: rpcnb.gst $(RPCNBOBJ)
-$(RM) $@
oml $@ r <@<
$(RPCNBOBJ)
<
rpcnbr.lib: rpcnbr.gst $(RPCNBROBJ)
-$(RM) $@
oml $@ r <@<
$(RPCNBROBJ)
<
#
# Debugging libraries
#
grpc.lib: grpc.gst $(GRPCOBJ)
-$(RM) $@
oml $@ r <@<
$(GRPCOBJ)
<
grpcr.lib: grpcr.gst $(GRPCROBJ)
-$(RM) $@
oml $@ r <@<
$(GRPCROBJ)
<
grpcnb.lib: grpcnb.gst $(GRPCNBOBJ)
-$(RM) $@
oml $@ r <@<
$(GRPCNBOBJ)
<
grpcnbr.lib: grpcnbr.gst $(GRPCNBROBJ)
-$(RM) $@
oml $@ r <@<
$(GRPCNBROBJ)
<
#protos:
# -$(MKDIR) prototypes
# $(CC) $(CFLAGS) MOD GENPROTO <WITH <
#$(RPCSRC)
#<
# $(MV) #?_protos.h prototypes/
rpc.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARSTK) $(CFLAGS) $(OFLAGS) MGST=$@ NOOBJNAME gst.c
rpcr.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARREG) $(CFLAGS) $(OFLAGS) MGST=$@ NOOBJNAME gst.c
rpcnb.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARSTK) $(CFLAGS_NB) $(OFLAGS) MGST=$@ NOOBJNAME gst.c
rpcnbr.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARREG) $(CFLAGS_NB) $(OFLAGS) MGST=$@ NOOBJNAME gst.c
grpc.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARSTK) $(CFLAGS) $(GFLAGS) MGST=$@ NOOBJNAME gst.c
grpcr.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARREG) $(CFLAGS) $(GFLAGS) MGST=$@ NOOBJNAME gst.c
grpcnb.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARSTK) $(CFLAGS_NB) $(GFLAGS) MGST=$@ NOOBJNAME gst.c
grpcnbr.gst: SCOPTIONS $(RPCHDR)
-gst unload `cd`/$@
-$(RM) $@
$(CC) $(PARREG) $(CFLAGS_NB) $(GFLAGS) MGST=$@ NOOBJNAME gst.c
clean:
-$(RM) \#?! \#?.(o|ro|nbo|nbro|go|gro|gnbo|gnbro|lib|gst|map) SCOPTIONS